ChatEvent

data class ChatEvent(    val id: String,     val eventName: String,     val sendTime: Date,     val requestId: String? = null,     val attributes: Map<String, String>? = null)

Represents an event received in the chat room. Events might originate from IVS service, client actions, or your backend code.

Constructors

Link copied to clipboard
fun ChatEvent(    id: String,     eventName: String,     sendTime: Date,     requestId: String? = null,     attributes: Map<String, String>? = null)

Properties

Link copied to clipboard
val attributes: Map<String, String>? = null

Key-value object for any additional data

Link copied to clipboard
val eventName: String

Name an event

Link copied to clipboard
val id: String

Server-generated unique identifier of an event

Link copied to clipboard
val isSystemEvent: Boolean

Informs if this event originated from IVS service.

Link copied to clipboard
val requestId: String? = null

Client-generated identifier of the request that triggered the event

Link copied to clipboard
val sendTime: Date

Date and time when event has been sent